using Newtonsoft.Json;
namespace PddOpenSdk.Models.Response.Invoice
{
    public partial class QueryInvoiceDetailResponseModel : PddResponseModel
    {
        /// <summary>
        /// response
        /// </summary>
        [JsonProperty("invoice_detail_query_response")]
        public InvoiceDetailQueryResponseResponseModel InvoiceDetailQueryResponse { get; set; }
        public partial class InvoiceDetailQueryResponseResponseModel : PddResponseModel
        {
            /// <summary>
            /// 拒绝原因
            /// </summary>
            [JsonProperty("denied_reason")]
            public string DeniedReason { get; set; }
            /// <summary>
            /// 备注
            /// </summary>
            [JsonProperty("memo")]
            public string Memo { get; set; }
            /// <summary>
            /// 发票文件地址
            /// </summary>
            [JsonProperty("invoice_file_path")]
            public string InvoiceFilePath { get; set; }
            /// <summary>
            /// 开票日期,时间戳（毫秒）
            /// </summary>
            [JsonProperty("invoice_time")]
            public long? InvoiceTime { get; set; }
            /// <summary>
            /// 开票人
            /// </summary>
            [JsonProperty("payee_operator")]
            public string PayeeOperator { get; set; }
            /// <summary>
            /// 原蓝票号码（红票必填）
            /// </summary>
            [JsonProperty("original_invoice_no")]
            public string OriginalInvoiceNo { get; set; }
            /// <summary>
            /// 原蓝票代码（红票必填）
            /// </summary>
            [JsonProperty("original_invoice_code")]
            public string OriginalInvoiceCode { get; set; }
            /// <summary>
            /// 发票号码
            /// </summary>
            [JsonProperty("invoice_no")]
            public string InvoiceNo { get; set; }
            /// <summary>
            /// 发票代码
            /// </summary>
            [JsonProperty("invoice_code")]
            public string InvoiceCode { get; set; }
            /// <summary>
            /// 总税额
            /// </summary>
            [JsonProperty("sum_tax")]
            public long? SumTax { get; set; }
            /// <summary>
            /// 税率
            /// </summary>
            [JsonProperty("tax_rate")]
            public long? TaxRate { get; set; }
            /// <summary>
            /// 不含税金额
            /// </summary>
            [JsonProperty("sum_price")]
            public long? SumPrice { get; set; }
            /// <summary>
            /// 开票金额
            /// </summary>
            [JsonProperty("invoice_amount")]
            public long? InvoiceAmount { get; set; }
            /// <summary>
            /// 开票类型：0-蓝票，1-红票；目前只支持0
            /// </summary>
            [JsonProperty("invoice_type")]
            public int? InvoiceType { get; set; }
            /// <summary>
            /// 发票种类：0-电子发票，1-纸质发票，2-专票；目前只支持0
            /// </summary>
            [JsonProperty("invoice_kind")]
            public int? InvoiceKind { get; set; }
            /// <summary>
            /// 审核结果：1-开票中，2-已完成
            /// </summary>
            [JsonProperty("status")]
            public int? Status { get; set; }
            /// <summary>
            /// 税号，企业必填
            /// </summary>
            [JsonProperty("payer_register_no")]
            public string PayerRegisterNo { get; set; }
            /// <summary>
            /// 发票抬头
            /// </summary>
            [JsonProperty("payer_name")]
            public string PayerName { get; set; }
            /// <summary>
            /// 抬头类型：0-个人，1-企业
            /// </summary>
            [JsonProperty("business_type")]
            public int? BusinessType { get; set; }
            /// <summary>
            /// 店铺id
            /// </summary>
            [JsonProperty("mall_id")]
            public long? MallId { get; set; }
            /// <summary>
            /// 发票流水号
            /// </summary>
            [JsonProperty("serial_no")]
            public string SerialNo { get; set; }
            /// <summary>
            /// 订单号
            /// </summary>
            [JsonProperty("order_sn")]
            public string OrderSn { get; set; }
            /// <summary>
            /// 申请状态：0-已拒绝，1-申请中，2-已同意
            /// </summary>
            [JsonProperty("application_status")]
            public int? ApplicationStatus { get; set; }

        }

    }

}
